package com.qiangqiang.resoldhouse.exception;

import com.qiangqiang.resoldhouse.enums.AreaEnums;
import com.qiangqiang.resoldhouse.enums.HouseEnums;
import lombok.Getter;

/**
 * Description: resoldhouse
 * Create by jeff on 2018-8-9 16:09
 */
@Getter
public class HouseException extends RuntimeException{
    private Integer code;

    public HouseException(HouseEnums houseEnums){
        super(houseEnums.getMessage());
        this.code = houseEnums.getCode();
    }
}
